package net.dgg.dggcloud.service.jrcrm.entity.orf;

import net.dgg.dggcloud.service.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @ClassName:  PaymentCostRecord
 * @Description: 核款科目详情表
 * @author：郭伟
 * @date： 2017/11/6
 */

@Entity
@Table(name = "orf_payment_cost_record")
public class PaymentCostRecord extends BaseEntity {

    /**
     * 科目标识
     */
    @Column(name="cost_id")
    private String costId;


    /**
     * 科目数量
     */
    @Column(name="cost_num")
    private Integer costNum;

    /**
     * 财务ID
     */
    @Column(name="payment_id")
    private Long paymentId;

    /**
     * 订单ID
     */
    @Column(name="order_business_id")
    private Long orderBusinessId;


    /**
     * 金额
     */
    @Column(name="amount")
    private Long amount;

    /**
     * 可用金额
     */
    @Column(name="not_amount")
    private Long notAmount;

    /**
     * 合同编号
     */
    @Column(name="contract_no")
    private String contractNo;

    /**
     * 成本状态  1 外部 ，2 内部
     */
    @Column(name="status")
    private Integer status;

    /**
     * 成本类型  1 退款 ，2 核款
     */
    @Column(name="type")
    private Integer type;

    /**
     *  是否完成 0 否 1 是
     */
    @Column(name="is_complete")
    private Integer isComplete = 0;

    public Integer getIsComplete() {
        return isComplete;
    }

    public void setIsComplete(Integer isComplete) {
        this.isComplete = isComplete;
    }

    public String getCostId() {
        return costId;
    }

    public void setCostId(String costId) {
        this.costId = costId;
    }

    public Integer getCostNum() {
        return costNum;
    }

    public void setCostNum(Integer costNum) {
        this.costNum = costNum;
    }

    public Long getPaymentId() {
        return paymentId;
    }

    public void setPaymentId(Long paymentId) {
        this.paymentId = paymentId;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public String getContractNo() {
        return contractNo;
    }

    public void setContractNo(String contractNo) {
        this.contractNo = contractNo;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getNotAmount() {
        return notAmount;
    }

    public void setNotAmount(Long notAmount) {
        this.notAmount = notAmount;
    }

    public Long getOrderBusinessId() {
        return orderBusinessId;
    }

    public void setOrderBusinessId(Long orderBusinessId) {
        this.orderBusinessId = orderBusinessId;
    }
}
